﻿using System;
using System.Collections.Generic;
using Shop.Base.Entity;
using Shop.Base.Entity.Insert;
using Shop.Base.Entity.Update;
using Shop.Entity;
using Shop.Interface;

namespace Shop.Base.Interface
{
    public interface ISystemButton:IBase
    {
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="t">修改信息</param>
        /// <param name="com">操作人信息</param>
        /// <returns>true/false </returns>
        bool Update(UpdateSystemButton t, ComUser com);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="t">修改信息</param>
        /// <param name="com">操作人信息</param>
        /// <returns>true/false </returns>
        bool Insert(AddSystemButton t, ComUser com);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="buttonName">按钮名称</param>
        /// <param name="isDel">是否已删除</param>
        /// <param name="pageIndex">当前第几页</param>
        /// <param name="pageSize">每页显示数量</param>
        /// <param name="total">输出总数</param>
        /// <returns></returns>
        List<SystemButtonPo> GetPage(string buttonName,int isDel, int pageIndex, int pageSize, out int total);

    }
}